package com.usian.mongodbtest.pojo;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.util.Date;

@Data
@Document("user")
public class Teacher {

    @Id
    private Integer _id;

    @Field("title")
    private String name;


    private Integer age;


    private Date createTime;



}
